package com.csp;

import com.csp.anotation.Select;
import com.csp.anotation.Update;
import com.csp.entity.GoodsCar;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 测试mapper接口
 * @author:chengsp
 * @createTime:2019/8/22 10:37
 */
public interface TestInterface {
    @Select("select * from goods_car")
    List<GoodsCar> selectAll(Map<String, Object> map);


    @Select("select * from goods_car where id >#{count}")
    Set<Map> selectIds(Map<String, Object> map);

    @Update("update goods_car set goods_id=8888888 where id=#{id}")
    int updateById(Map<String, Object> map);

}
